How can I create an advanced stock screener using Python that integrates real-time market data from sources like Alpaca or the Interactive Brokers API? Also, what are the best practices for filtering stocks based on both technical and fundamental analysis?