use beautifulsoup instead of lxml in Eso.data_retrieval

also use more Pythonic code
use beautifulsoup instead of lxml in Eso.get_headers
improved style of Eso.get_headers