make a proper script out of bulk.py