<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def editMonitor(self, monitorID, monitorStatus=None, monitorFriendlyName=None, monitorURL=None, monitorType=None, monitorSubType=None, monitorPort=None, monitorKeywordType=None, monitorKeywordValue=None, monitorHTTPUsername=None, monitorHTTPPassword=None, monitorAlertContacts=None):
 """ monitorID is the only required object. All others are optional and must be quoted. Returns Response object from api. """


        url = self.baseUrl
        url += "editMonitor?apiKey=%s" % self.apiKey
        url += "&monitorID=%s" % monitorID
        if monitorStatus:
            # Pause, Start Montir
            url += "&monitorStatus=%s" % monitorStatus
        if monitorFriendlyName:
            # Update their FriendlyName
            url += "&monitorFriendlyName=%s" % monitorFriendlyName
        if monitorURL:
            # Edit the MontiorUrl
            url += "&monitorURL=%s" % monitorURL
        if monitorType:
            # Edit the type of montior
            url += "&monitorType=%s" % monitorType
        if monitorSubType:
            # Edit the SubType
            url += "&monitorSubType=%s" % monitorSubType
        if monitorPort:
            # Edit the Port
            url += "&monitorPort=%s" % monitorPort
        if monitorKeywordType:
            # Edit the Keyword Type
            url += "&monitorKeywordType=%s" % monitorKeywordType
        if monitorKeywordValue:
            # Edit the Keyword Match
            url += "&monitorKeywordValue=%s" % monitorKeywordValue
        if monitorHTTPUsername:
            # Edit the HTTP Username
            url += "&monitorHTTPUsername=%s" % monitorHTTPUsername
        if monitorHTTPPassword:
            # Edit the HTTP Password
            url += "&monitorHTTPPassword=%s" % monitorHTTPPassword
        if monitorAlertContacts:
            # Edit the contacts
            url += "&monitorAlertContacts=%s" % monitorAlertContacts
        url += "&noJsonCallback=1&format=json"
        success = self.requestApi(url)
        return success