added a 'is_mobile' function to request.py