Make unit testing and rpm building py2.6 compat

Closes #1