Included a hint for you! You don't have to iterate the range to use it as a list directly
Added a classic way to run unittests
Added some files to show to you a nicer way to run tests.
I moved the tests to the subfolder. This is a much nicer way to keep your development environment clean and the tests in a subfolder. If you use test discoveryy from the root folder (call 'nosetests' from commandline) the test files will automatically find all the required dependencies in the root folder.