added python api wrapper
Merge pull request #4727 from Itxaka/master

added python api wrapper