Update of NTLMaps code so that it works in Python 3.