Corrected the Hessian and Jacobian in KAM.py

Corrected the Hessian and Jacobian for the Newton-CG method. Sign
errors and H[2,1] set to itself instead of H[1,2].