I ran into problems with Python not piping stdout to tee. The problem was that Python is buffering the stdout. To enable tee to work, you simply need to put a -u flag there.
python -u your_script | tee your_log
Thanks to this post here, really should read the man page of Python more