cleaning up python wrapper code for bounds and position
(#6)