Wip mds sessions

This is just copy-pasted from its old location in kclient.py, but yes -- this double loop is actually completely redundant as it's just being used to grab the 0th member of the getpeername() result.