polygon.py

The core code is from   Michael Oselskyi
with google pus link
https://plus.google.com/u/0/104906456055007013125/