I want create online game with Python. Is there any framework or library to make it easier? I would like it if the framework provided things like character attributes, such as health.
There is not one. If you are interested in making online games in Python, I encourage you to look at Panda3D, which does have a networking interface. However, it is not nearly as high-level as you want - there is nothing like health or HP built into it.
Have a look at BigWorld (www.bigworldtech.com). It's not free, though, not even particularly cheap.