The code for this method has been added to ca_outline.py. You may download it from GitHub and use it.
ca_outline.py