結果 : how to check if function exists in python