Optimized urllib usage