nullege is a python library that utilizes the nullege API to search for usage of python objects in open source code.
See http://nullege.com.
you can download the latest version here https://github.com/niccokunzmann/nullege/archive/master.zip and extract it into your site-packages.
Or do a
git clone git@github.com:niccokunzmann/nullege.git
in the site-packages folder.
You should be able to do
from nullege import find
find.samples(bytearray)
and it should print something out.
I do not know anyone who uses this. Get in touch, fork or tell me use-cases!