Fix 3.12 bug and use tab instead of spaces