First attempts at Python3 support for autoreload
Seems to work most of the time in Python 3