Fixed some string -> str instances and add spaces before colon as required by numpydoc