I\'m making an application in Python and using Amazon Web Services in some modules.
I\'m now hard coding my AWS access id and secret key in *.py file. Or might move them
Don't put it in applications you plan to distribute. It'll be visible and they can launch instances that are directly billable to you or worst..they can take down instances if you use it in production.
I would look at your programs design and seriously question why I need to include that information in the app. If you post more details on the design I'm sure we can help you figure out a way in which you don't need to bundle this information.