Create 3dcube.py

Ported / Rewritten for python