change logic to parse datetime informations
update runtime to python27