Comparing a simulated dict based switch-case vs a if-elif in Python