Python: add a security related patch.
Merge pull request #442 from Florin65/python

Python: add a security related patch.