added python compiled code
added else statment for chdir from sql saving