fix 'if vector:' for py3, #7