added p010, python, crap algorithm from edit of p007--improve