I need a simple script that read a file that contains some screen_name on twitter and use the following API to append the corresponding user_id
[url removed, login to view]
It needs to be python based (2.6.x) and you can use the existing twitter library (e.g tweepy) when you see fit.
Make sure that your code will take care of the API limit that allows only getting 180 user_id every 15 minutes. (e.g. create a cron job and wait every 15 minutes to continue where it was left)
e.g. The original file contains:
And after the script, I want the file to become: