Turn PYTHON_MAGIC_COMMENT_re into byte string
Use sorted() in possible view instead of .sort()
Merge pull request #21 from DasIch/python3-2

More small Python3 fixes