This is a BPG decoder written in python using shared object compiled from BPG source code. It should work with Linux or Windows Subsystem for Linux and python 3.X.
Put the encoded .bpg file, the decode and the libbpg.so in the same path, and run ./decode.py, all the decoded .png will be saved in the current folder.