Fix for python3: binary is not str