Avoid + on bytes and str in write_passes