register_openers()
with open('style.css', 'r') as f:
    datagen, headers = multipart_encode({'file': f})
request = urllib.request.Request('http://jigsaw.w3.org/css-validator/validator',
    datagen, headers)
Make an http POST request to upload a file using python urllib/urllib2