URL applications in Python