Modified to support both python v2 & v3. Remove iso8601 module deps.