Added functions to generate if __name__ == '__main__' boilerplate code