Bugfix: Fixed Session creation bug in python server.