reformat the code follow google-python-styleguide