Resolves #8, Python2 backwards-compatibility