Possibly working alignment.py