fixing ml code and adding beautifulsoup as dependency