fix: checking if url is basestring instead of string only