Improved readability of the run method in the queues.py and a few additions to .gitignore

I also added *.pyc and .DS_Store to the .gitignore file for the slackers that don't have them globally ignored.