some python for setting up & analyzing structure runs