standardize spacing in function declarations

future recommendation: no space after `def` keyword