You have a trailing comma at the end of the line, so you get the result {}.get('test1',{}).get('test2','hrmm') in a singleton tuple.
Here is an example of how this works with a simple literal:
>>> box = 1, >>> box (1,) >>> type(box) <type 'tuple'>
source share