Much more progress on PY flash routines.  Only a few edge cases that fail, otherwise all is good

Moved from bounded secant to Brent for stability

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>