Refactoring colorpath to extend path module instead.