add precommit flake8 hook

Stolen from
https://raw.githubusercontent.com/apache/libcloud/trunk/contrib/pre-commit.sh