Added a input generating function
Merge branch 'python3'

Finished python3 updates