Setting up py2.6 compatibility