python code working. not polished yet.
python code working with unittest
some touch up