pulling in lots of stuff from python code