[mapistore-python][sample.py]: Rewrite some "for"loops
[mapistore-python][sample.py]: Remove trailing commas