Some speedups

Nothing spectacular
N.B. why there was a regexp in __getitem__() ?
find('.') seems faster than split('.') + len()