large update

python 3 print statements
removed state machine exception handling
removed unused arguments