combination generator done in python