Update connecting.py

added Bugfix: is_connected() not working correctly when using credentials by smetnana