Update beast.py

Speed up for inspect