its only for to show and learn how the process is done using one thread.
feel free to optimize but its impossible to gain speed with python.
using opencl makes no difference.
that is why to use C..
here's a simple one i made in python .. does about 35-50k keys/s deppending on cpu
https://github.com/dibzzy/Easy-Bitcoin-puzzle-key-scanner