Fix python 3 date initialization