Correct error in Python bindings that prevented use of custom profile.