s4:provision.py - simplify the "realm" variable handling a bit