Create make_ends.py