Inline the helper method.

It wasn't used elsewhere anyway. Otherwise we should have moved it to
pyopentxs.
Moved function to correct location in the file.