Python 3 support

with simple map it does not sort anything