Python 2 compatibility

* format_map is python 3 only :(