Close sqlalchemy session at the end of each method

do sqlalch open-close in a cycle is highly ineffective