renamed files and functions to comply with python style guidelines