Update train_smile.py

Cleaned up code, turned into method and created main method.  Works with the webcam_modified_fixed.py code