This article does not make any sense. You don't get a timestamp from nowhere without knowing the kind of time it references: local or UTC or fixed to anything like client time.
For python the important thing to understand is the difference between tz aware and naive datetime objects. But after you can do depending on your needs.
For example, if you ensure to convert your inputs to UTC and output UTC also, you can easily just work with utcnow by only dealing with UTC internally.
You would have to do that to store datetime in MySQL for example.