Use “key” over “cmp” for sorting; implement rich comparisons

* “key” introduced in Python 2.4
Use “hashlib.md5” instead of “md5” module

* “md5” module deprecated in Python 2.5 and removed in 3
Attempt to replace usage of “audiodev” module with “ossaudiodev”

“audiodev” deprecated in Python 2.6 and removed in Python 3