Serial comms issue

post your full new code

BTW - I've written a small tutorial on interfacing with Python. See Two ways communication between Python3 and Arduino