Fixed bug in alchemy.py