rename find_main_user to find_main_user_line
fix pep8 warnings