Fixed, variable typo
Changed, reformatted to be more pythony!