Setup improvements

- set package versions
- identify UTF-8 string, to avoid errors due to encoding
- make code pep8 conformant (see pep8 tool, which is available to integrate with several IDE)