python26 compat changes, lack of context manageers

resubmitting on branch pulp-2.2