Hi, Walter,

Thanks for your suggestion and help.
I have ever tried 
(1) "#keyboard input[name='keyboard.layouts.spanish']" and 
(2) "#keyboard li label input[name='keyboard.layouts.spanish']".
But these methods were fail. I can find the element but cannot tap it.
Zac helped modify the selector by using xpath, and it works as normal.
So strange.

Regarding the PEP8 problem, I will have a pull request to update it.
Thanks.