Array Replace Python Function Example With Variables