add Pyment comment to generated patch
replace main by run and set a simple main