Add setOpts method for custom urllib options