This is a separate function in pycogent, although to be honest I have no idea why.