def headers(dms=False):
    """Constructs the header row for the CSV file"""
    if dms:
        return ['ID', 'Created', 'Sender ID', 'Sender Name', 'Message']
    else:
        return ['ID', 'Created', 'Favorited', 'Truncated', 'Reply Status ID',
                'Reply User ID', 'Reply Screen Name', 'Source', 'Tweet']