Global variables structured better.
- from __future__ import print_function, division
- one print -> logging.error
README improved