python based math interpreter and operator