Adding updates for python3. Changed some print statements and removed deprecated functions.
Fixes #2 (closed)