For anyone in the future, you can do the following:
import os
path = os.path.dirname(os.path.realpath(__file__))
Now you have the path to the current python file. You can access files like so:
f = open( os.path.join(path, 'static/logo.png'), 'rb' )