fix adding binary streams

In python3 urllib returns bytes for binary data instead of string.
So we need just to check the type, is_binary isn't needed anymore.