do it in Python