Python script template with argument handling