Python Loop Through Two Dimensional Motion