Lightweight Python library for distributed computing and optimization