I haven't looked at this (because I don't use python) but maybe it can be useful: Demo of PC-Arduino comms using Python