Make compatible to Python 3

Convert map object to list for later indexing, makes the project Python 3 compatible.

Would appreciate a release for this!