string comparison work python dateobjects with mysql table dates