Removed all traces of urllib except for encode/decode; more bugs fixed.