replace.py: replace deprecated inputChoice() function

Replace inputChoice with input_choice().
Pep8, pep257 fixes.

Bug: 72294
Change-Id: I4fd6fd72e6138a6f3d174443fda90d70115b6b7f
Merge "replace.py: replace deprecated inputChoice() function"