Removing unused function.
Renaming function for clarity
autopep8 formatting