I know this is a private function, but would it make sense to add a little comment about the expected params and such?  I wouldn't have known how this worked without seeing the tests and looking up the ttypes, but it may make it a little easier for someone else scanning the code.  :)