export_bmf_100.py: Clean up code