[pyvideo] Cleanup and fix test