instance_groups = []
instance_groups.append(InstanceGroup(num_instances=1, role='MASTER', type=
    'm1.small', market='ON_DEMAND', name='Main node'))
How to launch and configure an EMR cluster using boto