With python you should use the square bracket to access a field. The JavaScript driver uses parentheses because you can't overload the square bracket in JS.
That's what your query should look like.
r.db('my_db').table('my_table').filter(lambda row: row['some_key'].match(".sometext."))