Refactor udp_server.
Parse arguments with argparse.