Successfully installed python-nmap but nmap not found on run

python

#1

goal: run nmap from python3 script

installed:
$ sudo pip3 install python-nmap
Successfully installed python-nmap

however when I run script importing nmap

#python3
import nmap

I get error:

File “/home/ubuntu/workspace/nmapper.py”, line 3, in
import nmap
File “/home/ubuntu/workspace/nmap.py”, line 25

    ^                                                                                                                                                              

SyntaxError: invalid syntax

c9 interpreter is looking in the ubuntu workspace…

How do I force the script to look in or tell c9 where to find nmap?
’/usr/local/lib/python3.4/dist-packages/nmap’

here is the video