Added a version check for adding data to a urllib request.