This ought to fix #211 (QEMU boot bug [python 3]) by applying the same fix from here: https://github.com/kamilion/customizer/blob/master/src/actions/rebuild.py#L89-L93