Update video.py

swap `isinstance` and `not isinstance`