Applying Reinforcement Learning on Real-World Data with Practical Examples in Python