Python Pass Instance Of Class To Function