Prompting user to select nodes in viewport

I am trying to write my first abaqus plugin. With the abaqus python scripting interface, how do you prompt the user to select nodes in the viewport, and then get the resulting node labels?