Close sqlalchemy session at the end of each method