add backwards compatibility for urllib

just import the functions we need directly