Made bflexergen.py slightly more convention-based