Python 3 fixes.

raw_input was replaced with input. Wrote input_prompt in lib.utils that
determines which input function to use.

JSON string was throwing issues because of decoding issues.