from datetime import datetime


def values(csv_row: dict, timestamp=None):
    """
    Return a dictionary of the telemetry values from the row. If timestamp is
    None, add current timestamp in seconds.
    """
    if timestamp is None:
        timestamp = datetime.now().timestamp()

    def valid_key(key):
        return key not in ('date', 'time')

    return dict(((k, v) for k, v in csv_row.items() if valid_key(k)),
                timestamp=timestamp)