Fixed error in the Python interpretation of settings when a + or - character had spaces around it.