When pressing Backspace, instead of TTY Erase or ASCII Del, your terminal emulator puts Ctrl+H, which is shown as \x08 (ASCII Backspace) in python strings. It must be changeable in your terminal app's settings.
TTY Erase
ASCII Del
Ctrl+H
For example, in Gnome terminal