added license and fix one relative import of shutil.copy