Merge pull request #3 from DJSymBiotiX/python_implementation

Added python implementation
Switched the large range to an xrange to speed it up