How to call a custom function

Python methods expect the first parameter to be the self object. For example:

def angle_between_points(self, point1, point2):