Basic Python implementation of two types of random walks