fixed check os and configured python condition