def set_python_main(option, opt_str, value, parser):
    """
	Set the main Python code; after contexts are initialized, main is ran.
	"""
    main = value, option.python_loader
    setattr(parser.values, option.dest, main)
    if not parser.allow_interspersed_args:
        parser.rargs.insert(0, '--')
