Tabs replaced by spaces and run in Python3 executable on Linux! Works with 750000 spots now. Count part still in the making.