Migrating to passlib