moved main into a function
pylint