Normalize stock prices and time series data with Python