We are trying to implement a system that takes input as novels and can extract the author's styles(word length,sentence length,usage of comma etc) so that it can predict the authorship of document; when we give an anonymous document of any trained author.

our trained system have to learn author's style by using machine learning algorithm.
is there any problem of using Naive Bayes algorithm to train our system to extract each author's style. Otherwise, can you please give me a better alternative??

We are trying to get implement it in python.
Can you tell me where to start? Thanks in advance..