Scripting with python