Update base.py

it's better to use .lower()