Complex sentence: Being Brahmins, the neighbours called them Thakurmashai or "holy sir", the British then making their way into the country followed suit and "Thakur" became their family name.
Split into simpler sentences: Being Brahmins, the neighbours called them "Thakurmashai", or "holy sir". After the British gained control of the country, "Thakur" became their family name.