Python Repeat Code N Times Cr