Stochastic modeling of active biological transport in inhomogeneous environments