I have a Sql Alchemy application that is returning TimeOut:
TimeoutError: QueuePool limit of size 5 overflow 10 reached, connection timed out, timeo
Also you can use engine.dispose() method in the end of def. This has the effect of fully closing all currently checked in database connections.