You can use server.addresses['novanetwork'][0]['addr'] instead of getattr.