added python code for preprocessing training data, and an example directory