Removed extraneous serial prints
Moved from PHP to Python