Small changes to make the package readthedocs coompatible