Added python API wrapper, fixes #4717

王权利请求将github/fork/Itxaka/master合并到master

Created by: Itxaka

Tried to squash the 2 commits but I was unable, so I created a new commit :D

合并请求报告