Use Visual Python to apply cube