A hapless python had to be rescued with cooking oil after getting stuck head-first - in a man-hole cover.