Canonical CS algorithms written in Python