Checking For Function Python Example