corrected tabbing and added a for loop
Made more awesome by utilizing  awesome python features.