Put all examples in standard form (def main(): etc.).