Python UnicodeDecodeError while using modulefinder

I want to find all imported modules in a python program. I am using the modulefinder standard module for my job. I am trying to follow this example on docs, but I get this error even if I use the s...