more verbose testing, checking for g4 compression
replaced pydict_next with a for loop, due to py_ssize_t warning and issues on 64bit system