Remove unused import
Use a local urllib opener instead of a global one