Python 3 compatibility print.
Python 3 compatible sort of keys.