Use 'future' package to make code compatible with Python 2.6, 2.7 and 3.3+

Originally pull request from https://bitbucket.org/agr/ropemacs/pull-request/7/

@pmcnr do you have any more comments on this?