'>' not supported between instances of 'str' and 'Timestamp'