worked on python code to understand cloth tile pattern