How to measure the angle?

Add the directory where the .py file is located to the “Additional module paths” in Application settings / Modules section. If you restart Slicer then the “Angle measurement” module will show up in “Quantification” category in the module list.