Implement point_defect.py