Python library for CLI environment