Local para a ISO 8601 sem microssegundo:

import datetime
datetime.datetime.now().replace(microsecond=0).isoformat()
>>> 2020-03-20T14:30:43
Puzzled Puffin