'''
    2017 - python3 script starting template.
'''
import argparse
###   ###   ###
def getArgs():
    parser = argparse.ArgumentParser(description='Process some integers.')
    parser.add_argument('integers', metavar='N', type=int, nargs='+',
                   help='an integer for the accumulator')
    parser.add_argument('--sum', dest='accumulate', action='store_const',
                   const=sum, default=max,
                   help='sum the integers (default: find the max)')

    return parser.parse_args()

def main():
    args = getArgs()
    print(args.accumulate(args.integers))

if __name__ == "__main__":
    # execute only if run as a script
    main()

...