Move test cases to pytest.
Adding flake8 as dependency.
Merge pull request #2 from tonyseek/use-pytest-instead-of-nose

Use pytest instead of nose. good job