Fixing python 3.4 http lib usage