seccond attempt at decoding data
add python decoder (useful for testing/debugging)