docstrings, removed unsed start/end options
added unittest for python implementation, fixed __len__ method