Add http.client for python3.x

replace import httplib by 
try:
    import httplib
except ImportError:
    import http.client