Splitting requirements file

Some setup.py and py.test fixes to support running tests