Each virtual machine instance runs an Amazon Machine Image which is effectively just a packaged up file system which your instance will boot from when it starts. You are free to choose from a range of AMIs which have been created by Amazon or third parties but it is much more likely you will want to create your own to run your own server software.
Coding Library: Python

More Amazon EC2 Resources: