Is there a
do until x:
...
in Python, or a nice way to implement such a looping construct?
There is no do-while loop in Python.
This is a similar construct, taken from the link above.
while True:
do_something()
if condition():
break