Clean and cut the beans into very small pieces. Combine beans, grated coconut, shallots, green chilli, salt and turmeric with your hands. Heat oil in a pan. Add mustard seeds and when they splutter, add curry leaves. Add the beans mixture and saute well. Cover and cook for 5-10 minutes in low flame. Serve hot with rice.