First attempts to achieve Python 3 support (refs #15)