miscellaneous python scripts