python26 compat changes, lack of context manageers
Merge pull request #531 from rbowlby/rbowlby_rhel6_compatible

python26 compat changes, lack of context managers