move python implementation of haxe.io.Bytes and friends to a target-specific module