Hi. I just started with small examples in Python . I noted a strange feature about Python (or maybe, about scripting languages) that source files contains no classes declarations about like Java : public class EchoServer ..... In Python, we can write code without anything like :
Python code does not need to be organized into classes, no. it's possible to write purely procedural Python code, with no class definitions anywhere. but you really shouldn't.
Python does, also, have a perfectly decent OO system, complete with language syntax for defining classes, inheritance, overriding, and so on. you should learn how to use it, because Python is considered to be an OO language and it is held to be good taste and form to write your Python programs in an object-oriented style. see the Python library documentation for a primer on this.
taste and form matter a lot in Python, because Python programs are just about always distributed with source code - or even as source code - so your form and style will be on display to all your users. moreover, peer pressure from the Python community at large is how a lot of the language's standards are enforced. for example, the whole "self" thing is nothing but a shared custom - you could name that reference something other than "self", if you wanted to... but you'd be yelled at quite sternly as soon as you were found out. so don't.