<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def main():
 """Main script function"""

    # Create simulation object, and start streaming SPEAD heaps
    sender = PulsarSender()

    # Parse command line arguments
    args = parse_command_line()

    # Initialise logging.
    _log = _init_log(level=logging.DEBUG if args.verbose else logging.INFO)

    # Load configuration.
    _log.info('Loading config: %s', args.config_file.name)
    _config = json.load(args.config_file)
    if args.print_settings:
        _log.debug('Settings:\n %s', json.dumps(_config, indent=4,
                                                sort_keys=True))
    sender.send(_config, _log, 1, 1)