0.3.1

Fixes to bugs discovered during upload to PythonAnywhere