Class based extension/plugin library for Python 2 and Python 3