Python If Variable Not Defined Python Compiler With Sklearn