Make formatter compatible with python3 native runtime.