Actually finished magic.py