Fixing the def main function, properly calling it from treecutter.