added .py scripts for S3/MSD implementation, simple density script