Checking For None Python Function Parameters