Initial commit

Initial commit, main.py was modified from its original form for compatibility with Python 3.