Converting to python based startup script format