initialize _makefile_refs earlier so things don't blow up when close() is called in the constructor
allow passing cert/ssl information to urllib2.urlopen and httplib.HTTPSConnection

This is basically a backport of issues #9003 and #22366.
remove py3k warning guard