Get Complexes
     [Documentation]   Return all complexes
-    [Arguments]
        ${resp}=    Run A&AI Get Request     ${COMPLEX_INDEX_PATH}${ROOT_COMPLEXES_PATH}
     Should Be Equal As Strings         ${resp.status_code}     200
     Log    ${resp.json()}
-       [Return]  ${resp.json()}
-
-
-
-
+       [Return]  ${resp.json()}
\ No newline at end of file
 
     ${template}=    OperatingSystem.Get File    ${APPC_MOUNT_XML}
     ${data}=    Template String    ${template}    ${dict}
     ${resp}=    Run APPC Put Request     ${APPC_INDEX PATH}${APPC_CREATE_MOUNTPOINT_PATH}${nodeid}     ${data}
-    Should Be True 200    <= ${resp.status_code} < 300
+    Should Be True     200    <= ${resp.status_code} < 300
     [Return]     ${resp}
 
     [Arguments]    ${json_file}    ${arguments}
     ${json}=    OperatingSystem.Get File    ${json_file}
     ${returned_json}=  Fill JSON Template    ${json}    ${arguments}
-    [Return]    ${returned_json}
-
-Encode String
-   [Documentation]    Encodes String
-   [Arguments]    ${json}
-   ${returned_string}=    string encoder    ${json}
-   log    ${returned_string}
-   [Return]    ${returned_string}
\ No newline at end of file
+    [Return]    ${returned_json}
\ No newline at end of file
 
 Run MSO Delete request
     [Documentation]    Runs an MSO Delete request
     [Arguments]  ${data_path}  ${data}
-    sleep    2
     ${auth}=    Create List    ${GLOBAL_MSO_USERNAME}    ${GLOBAL_MSO_PASSWORD}
     Log    Creating session ${MSO_ENDPOINT}
     ${session}=    Create Session    mso    ${MSO_ENDPOINT}    auth=${auth}
     ${uuid}=    Generate UUID
     ${headers}=    Create Dictionary    Accept=application/json    Content-Type=application/json    X-TransactionId=${GLOBAL_APPLICATION_ID}-${uuid}    X-FromAppId=${GLOBAL_APPLICATION_ID}
-    log    ${data}
-    ${data1}    Encode String    ${data}
-    log    ${data1}
-    ${resp}=    Delete Request    mso    ${data_path}    ${data1}    headers=${headers}
+    ${resp}=    Delete Request    mso    ${data_path}    ${data}    headers=${headers}
     Log    Received response from mso ${resp.text}
     [Return]    ${resp}
 
 
 Get Keystone Url And Path
     [Documentation]    Handle arbitrary keystone identiit url. Add v2.0 if not present.
-    ${pieces}=   URL Parse   ${GLOBAL_INJECTED_KEYSTONE}
+    ${pieces}=   Url Parse   ${GLOBAL_INJECTED_KEYSTONE}
     ${url}=      Catenate   ${pieces.scheme}://${pieces.netloc}
     ${version}=  Evaluate   ''
     ${version}=  Set Variable If   '${OPENSTACK_KEYSTONE_API_VERSION}' not in '${pieces.path}'   ${OPENSTACK_KEYSTONE_API_VERSION}   ${version}
 
 Library            ExtendedSelenium2Library
 Library                UUID
 Library                Collections
+Library         JSONUtils