Fixing ScoppedSession bug and enhancing the setup.py and version