User blog:QuasarBooster/Python code for BEAF

I thought it would be interesting to put the BEAF system into python for the sake of completeness. So far, only linear arrays are supported. Further dimensions might come later. Optimization/obfuscation suggestions are welcome! For inquiries concerning BEAF arrays with two or fewer entries, consult your local calculator.