Updates for Python 3

Also some gitignore stuff. Sorry bout that.