The script can now be imported in other modules

Add if __name__ == "__main__": check which allows the methods to be
called from other modules in addition to direct execution as the main
program.