replace the set of if statement with jump table to remove pylint warning
Merge pull request #7 from frank378/fleur4

replace the set of if statement with jump table to remove pylint warning