Port of polylabel library from MapBox
Official repo: https://github.com/mapbox/polylabel Article - https://www.mapbox.com/blog/polygon-center/
Python2.7+ or Python3+
pip install python-polylabel
from polylabel import polylabel
polylabel([[[0, 0], [1, 0], [2, 0], [0, 0]]]) # [0, 0]