from datetime import datetime
import json


def generate_event(file_name, datetime=datetime):
    """Function to generate json with a timestamp and filname headers.
    """
    return json.dumps({'timestamp': datetime.now().isoformat(),
                'filename': file_name})