Create melange.py

Added the core file.