A python port of the medal deep learning toolbox