Added the main Python script

This is where the magic happens.