Correct packing of maps in Python 2.