Python Serial Handler