parsed = ast.parse(my_code, 'my_code.py', mode='exec')
parsed = Float32Visitor().visit(parsed)
code = compile(parsed, 'my_code.py', mode='exec')
my_code = eval(code)
32-bit floating point math in 64-bit Python