remove "shape" name collision in shape.py

Avoid using symbols "shape" and "_shape" because there is a
module called "shape".