Leangains macro calculator in python.