Fix lint errors. Make some app-engine-related changes.
Add lxml to App Engine dependencies
Fix deprecated syntax
Make pylint happy