Python 2.6 support

This should add Python 2.6 support, as indirectly requested in #33. Wasn't that hard after all (except for the monkey patching).

@tobiasbrunner could you review this?
Method does not exist in 2.6. This is just testing code. The tests appear to work without this line.