Initial rev of python script, non-working