Adding support for /status and /sessions commands to Python bindings. Plus some file mode bits cleanup.