bro-cut in python