Can I do the same thing with python