Arduino& python serial

i have a arduino which writes on serial port the values of 2 buttons
so the output is something like this
b1,1
b2,0
etc
but now i want to use these values in python
so i used pyserial
but now i get input from serial port as
b’b1,1\r\n’
so how do i use these values

Please post a complete sketch showing how you are outputting teh data from teh Arduino

The easier you make it to read and copy the code the more likely it is that you will get help

Please follow the advice given in the link below when posting code

GOOGLE : Read data from serial port python