Why NSPoint is not defined?

I’ve just got the question when I use NSPoint.
my scipt notice me:
NameError: name ‘NSPoint’ is not defined.
How can I solve it ?
Thanks a lot.

You need to do this:

from Foundation import NSPoint

It works.
Thanks:)