Python 2.6 compatibility, along with a fix for packages with underscore characters like MySQL_python

I had to use sysegg on a server that runs python 2.6 and had to make these changes to ensure everything works.