Use tuples with str.endswith(), supported since Python 2.5
Fixes for Python 3 support
Merge branch 'master' into HEAD

Conflicts:
	elftools/common/utils.py
Avoid BytesWarning in debugging messages in Python 3
Drop unused imports