rgw.py: adding a sanity check

Signed-off-by: Joe Buck <jbbuck@gmail.com>