Update core.py

One can't do something like:
  
`my_security = Security`
and later on
`my_security.init_app(...)`

'cause that ends in a strange recursion. 
(Haven't tested that, but it should work)