Merge pull request #32 from vadmium/tuples

Use tuples with str.endswith(), supported since Python 2.5