PEP 8 please:

    uid = components[components.index('resolveuid') + 1]