A simple optimization tool written in Python