Updated modify_metadata() to use httplib instead of the requests lib. As well as a lot of cleaning up.
Added the missing and required parameter, "metadata" to modify_metadata()