Fixed bugs just python file