Added Python 3 support to C-ext module. Explicitly define binary encoding for FITS I/O in tests for Python 3 compatibility.