fix dates and add error on python2