You just simply use it, if specific argument require python 2 sting you simply call bytes() on it.<p>For example<p>old_function(bytes(myarg))<p>if it needs to be a literal:<p>old_function(b&quot;literal&quot;)<p>That&#x27;s what I do, and works for me so far.