EXHIBIT 4(g) STOCK PURCHASE AGREEMENT Dated as of December 15, 1999 By and Among Plains Resources Inc.