BMI implementation in python.