Recently I ran across a trick on the net. I use iPython quite a bit, and I love how I can type a partial history command, and then use up/down to cycle through the recently used commands/code lines.
Markov logic networks (MLNs) combine first-order logic with the probabilistic semantics of graphical models. PyMLNs offers you inference and learning tools for MLNs.