Fix performance issue when disconnecting the mirror
Add underscore to private methods and attributes
Move _open method near of other private methods
Add comment to the _open method
Fix some pep8 and pylint issues