Collate Printing Pattern In Python