python. Empty strings as nulls in rest, fixed #165.