better session handling
enable python optimization