added POW check in Python