Wrapper for Python