Update percolation.py