Fix import for Python 3
Return datetime objects for dates