def pad(values, width):
    """Format a list of values to a certain width"""
    values = [ str(data) for data in values ]
    return ''.join([ data + (' ' * (width - len(data))) for data in values ])