extend Python API
Merge branch 'master' of https://github.com/hexhex/core