Fix race condition during assets.py collection.

Close #12.