Major fixes. Changed method of parsing user input for python backend.