No more templates.

Make backend dependency on Python explicit.
Move wrapper related functions into wrap/