getting python dates to convert to js dates correctly