Bug fix in index; bug fix in python scripts

Bug fix from Alec in EMFields3D.h
Merge pull request #3 from volshevsky/master

Bug fix from Alec in EMFields3D.h + Python scripts modified by Slavik