Method shape360() is made self contained

Cleaned up the example shape.py which demonstrates the usage of shape360().