Sometimes using from . import mymodule
works. I don't know the reason, but I have a Flask app, and importing modules with import mymodule
doesn't work, while from . import mymodule
works!
But you need to have __init__.py
file under mylibrary
.