Update legendre_vector_space.py

fixed assertion