pyGridGen: Some fixes and optimisations

o Fixed bug in use of closest_line to find starting
  line for gridding. opt_ri and opt_zi were used (indices)
  rather than the (r,z) coordinates

o Optimised local_gradient a little, creating spline
  objects once rather than every evaluation