Python Check If Function Has Parameter