Now determining ASCII or Binary mode, issue #82
Fixed dict error in Python 3