install_prompt: move python2 only code (str.decode) to the python2 block...

... (LP: #1073919)