use Python 3 compatible imports
use requests instead of urllib