Adott esetben a cython, illetve a pypy ilyen jellegű problémákon sokat segíthet. -- zsebHUP-ot használok!