Is there a way to dynamically find out how many arguments a function requires? I thought this would be listed somewhere with dir() but I can't find anything. Any help is appreciated.