change variable names from camelCase to more pythonic underscore