removed lxml, fixed bug in download error handling
fixed imports