def make_fooler(shalt_test):
#
    from string import replace, rstrip
#
    return "def fool_halt_test(x):\n" + \
           "#\n" + \
           "    " + rstrip(replace(shalt_test, "\n", "\n    ")) + "\n" + \
           "#\n" + \
           "    if halt_test(x,x):\n" + \
           "        while 0 == 0:\n" + \
           "            print \"Fooled you, I'm looping!\"\n" + \
           "    else: \n" + \
           "        print \"Fooled you, I'm halting!\"\n" + \
           "\n"

