Added cmp_to_key for Python 2.6 compatibility
Added the package_message command to be reloaded