python automation source code