[python] add cash register
[python] add counting primes