Py3 enabled && added validate_params function

Every method which will query the API should use validate_params to
ensure the parameters received are space-less strings.