py: Fix regress for printing of floats and #if.

Also change formating modifier in test script (it still passes with
original format though).