Replace flake8 with autoflake

autoflake automatically fixes the code while flake8 just report it.

  • Replace flake8 with autoflake pre-commit hook
  • CI: run autoflake instead of flake8.