first check for string type (python 2 and 3) then for basestring (python 2 only)
first check for string type (python 2 and 3) then for basestring (python 2 only)

watchforstock/evohome-client,andrew-blake/evohome-client