Python Calling Function From Graph