make change from terminal.com, compatible for py v2