Now first solution works not only in CPython