Added Wesley's code 'BP_tools.py' in utilities