better to add code like
```
if isinstance(repository_path,basestring):
    repository_path=(repository_path)
elif not isinstance(repository_path, (tuple,list)) or len(repository_path)>2:
     _log.error('repository_path should be a string or list/tuple of maximum 2 elements')
```