fix scripting error. and fix issues comparing tz naive and tz aware datetimes.