. . "results in an UnboundLocalError: local variable 'cfg' referenced before assignment. The notion of passing parameters to the .import session module makes sense (such that you can change certain behaviors easily, like the session_timeout) so I'm not sure how you can do so with 2.x other than using constants which I'd like to try and avoid." . .