PEP 8 whitespace fixes to functions

More fixes to function definitions and calls, removing whitespace between function name and the parameter(s) or argument(s).