Removed JSON stuff since there is JSON function in Python.
Improved console input.
Fixed merge conflicts.