Dump filename extension
Add Python 3 support