Removed Agg and main function from gmt, fixed interp path in grid, fixed deprecated matplotlib calls in poly