is there some thing like this in python?