General Purpose Python Algorithms