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?