added option to have no callback in fpga.py