Standardize the setting of database for testing
Make sure to run the flake8 by python3.4
Added module and function to caculate following stream of pages
Improved docstring