Update api.py

* Catch error caused by forgetting the argument on the ec2instance decorator, and give the user a hint.