Python critical path calculation module