This should be fine, but I'd probably use 'basestring' rather than 'unicode', or even better do `if not isinstance(userkeys, list)`