'Returns iterable object either for local file or uri
:param uri: uri (remote or local) to the ova package we want to iterate'

def _get_ova_iter_objects(self, uri):

    if uri.startswith('file://'):
        uri = uri.split('file://')[(-1)]
        return open(uri, 'rb')
    return urllib.request.urlopen(uri)
