Comparing datetime values after saving them into a table

What is the correct way to compare datetime.now() to a previously saved datetime.now()?

A datetime value cannot be compared to itself after being stored in a table and retrieved from the table. It looks like storing a datetime object in a table breaks it!

The following code raises a TypeError: can't compare offset-naive and offset-aware datetimes:

expiration_time = datetime.datetime.now() + datetime.timedelta(minutes=10)
app_tables.mytable.add_row(part='abc', expiration_time=expiration_time)
row = app_tables.allocateditems.get(part='abc')
print(expiration_time > row['expiration_time'])

EDIT
I found the answer here: Time Zone issues