attempt to fix python mode issues