correct pymode settings