uploading segments.py and readme file