Use print() function instead of statement
Open files with open() instead of file()
Use repr instead of backticks
Close log fifos after use
Use items() instead of iteritems()
Bugfix: use correct version to compare
Dervive errors from Exception instead of StandardError