grouping-content coding question to group files of same content P.S : Code is untested for error conditions. It is just a pseudo code representation in python.