fixed bug with parameter name + pep8 style fixes

Fixed styles in conformity with PEP8 notation.
Fixed a bug with wrong parameter of twitterreq function.