Python package for executing commands by following a directed graph