Tiny pinterest clone in Python with flask