Python-3: setdefaultencoding, interchanges of strings and bytes