Shouldn't you add

    cm = pyrax.cloud_monitoring

here? Or are you demonstrating that shorthand assignment elsewhere?