Python does not have a do-while construct. 
If you wish to emulate a do-while loop, you must make sure that your loop body is execute atleast once, so try this out - 
condition = True
while condition:
    # loop body here
    condition = test_loop_condition()
...