i am getting this error.. why?11Pradeep SharmaAndrey NikishaevFollowSep 4, 2018 · 1 min readyou are using python3. sting in python3 in in bytes, u need to use encode or use binary write