[python] fix pull #3