Python 3 compatibility

Also clean up drastically. *Man*, that looked bad.
Use MIT license, since public domain is ambiguous in some domains
Add pip requirements