Connecting PyMC3 to external code - help with understanding Theano custom Ops

@aseyboldt @ferrine any idea?