Python client for premium search: https://github.com/twitterdev/search-tweets-python
Ruby client for premium search: https://github.com/twitterdev/search-tweets-ruby
Also… perhaps you are working with an archive of Tweets in multiple formats (Twitter ‘native/original’ and enterprise Gnip Activity Stream format). If so, you should check out this Python code:
https://github.com/tw-ddis/tweet_parser. This library enables reliable parsing of Tweets delivered in both activity-streams and original formats.