handle urllib module reorg between python 2 and 3

Signed-off-by: Doug Hellmann <doug.hellmann@gmail.com>