Python Square Pattern Program