Checking Function In Python With Parameters