Created legendre.py, moved P2(x) out of ebm.py