fix syntax error, remove unused import, upgrade dependencies for travis ci