I too faced a similar problem. Spent a lot of time just to figure out that -
These update functions do not work when you try to update the table directly from database. And actually they should not, as postgres does not provide such feature in its database
When I tried updating from sqlalchemy session - things worked for me. SQLalchemy has already implemented the required triggers for auto updation. May be its the same problem for you.