Python implementation of REGE

this is a prototype REGE implementation in Python according to D.R.
white's algorithm.