instance = reservation.instances[0]
instance.update()
while instance.state == 'pending':
    print(instance, instance.state)
time.sleep(5)
instance.update()
instance.add_tag('Name', 'some name')
print('done', instance)
How to auto assign public ip to EC2 instance with boto