migrated code to be Python 3 compatible and added a context manager to the base class
Merge pull request #6 from grinner/2to3andcontext

migrated code to be Python 3 compatible and added a context manager to t...