On the EC2 box, have you've installed the python driver for Neo4j?
pip install neo4j
Since you've confirmed that through the desktop you can do a remote connection, do you get there same error when executing python remotely?
On the EC2 box, have you've installed the python driver for Neo4j?
pip install neo4j
Since you've confirmed that through the desktop you can do a remote connection, do you get there same error when executing python remotely?