some recursive patterns in python