fixed return types for date functions. added conversion from python dates to javascript. added next_week funciton