[python] How to disable Python warnings?