import urllib.request, urllib.error, urllib.parse
request = urllib.request.Request('http://google.com')
request.get_method = lambda : 'PATCH'
resp = urllib.request.urlopen(request)
How do I make a PATCH request in Python?