Python Repeat Code Ny Times