You can remove the print statement.  If it's helpful for debugging, write a user-displayable message:

    "Submitting response to {}...".format(modx_url)