Update upstream source
Ignore *.pyc files
Fix pre-checks and compile step
Adjust building, add publishing steps
Bump version to v0.3.1