PY3 apply() fixes

apply() doesn't exist, just call normally
Merge branch 'library-branch' of https://github.com/Metallicow/Phoenix into library-branch