various python scripts written to help research. Sorry for lack of comments.... made before I had habit of commenting my codes