Python calc tools