Some python syntax updates for the WML tools