fix pep
fix error on cdr_view - datetimes are not serializable in JSON