refactoring: put script code in "if name == '__main__'" part
refactoring: put imports at the start of the script