the Python byte-compiler does not care much about variables and
tries to byte-compile the Python 2 code from the file leading to
error during build.
with this commit Python 2.7 or newer are requirement but nowdays
distributions are (slowly) moving towards trowing out Python 2
and replacing it with Python 3 so I do not think this is going to
be much of a problem.
the default layout is done via the scripting support, that's just
a no go. plasma-default-layoutrc is possible simpler solution with
for the madness that the default plasma settings are done on
initial setup but it most likely some features will have to be
extended, especially the containment size option. hardcoding panel
and default view to always be available by setting virtual desktops
and other misc settings accordingly seems better but that will
probably break more code thus avoiding it for now