fixed conversion of js dates to python datetimes