Fixes for the blih python script