The Levi Decomposition of a Graded Lie Algebra