Miscellaneous fixes

Some fixes:
* Fix retrieval of pictures on Python 2.x because Python3 str/bytes model was expected
* Document the possible values of the only argument for group_getGroups
* Print the connecting to message on startup using the debugger, so applications can suppress this message