initial file by Jawaad Ahmad, downloaded from http://redmine.yorba.org/attachments/1477/shotwellfs.py