def save_parameters(args=None):
    f = open('parameters.txt', 'w')
    for arg in dir(args):
        if (not arg.startswith('_')):
            f.write((((arg + ': ') + str(getattr(args, arg))) + '\n'))
    f.close()
def save_parameters(args=None):
    f = open('parameters.txt', 'w')
    for arg in dir(args):
        if (not arg.startswith('_')):
            f.write((((arg + ': ') + str(getattr(args, arg))) + '\n'))
    f.close()