3.14: cast input to string
PEP style improvments