Try using numdifftools

Just throwing this out there...