Fix latest beautiful soup import error

add exception handing to take care of latest beautiful soup version imports