Cleanup imported function usage (urllib and cStringIO)