Merge pull request #1 from JustusAdam/patch-1

Some more idiomatic python
Removed typo