Losing a year or two is not a big deal. What is important that this moment completely belongs to you. It is in your control. Dont worry about the past or the people who bother you about the past. Do not worry about the future as well. You shape your own future to a large extent by your actions in this current moment. Friends are important but not the kind that they show in the movies. What is more important than friends are your well wishers. Well wishers come in all shapes and forms and some may not fit your definition of friends.
Start building something. Python is not that hard. Start with Google App Engine and python. That way you can build something quick and show it to the world. Remember this need not be perfect. Shipping something is more important than perfecting it. Start blogging your learnings. They help immensely serving as a reinforcement of concepts. Don't bother about getting friends. Participate in your local techmeets or geeknights or whatever they call it in your area. Find people with similar interests and start hacking on a project. It could be as simple as a todo list or a birthday reminder. Think of all the cool features that you could add to it. Make it and show it proudly. You will find that friends will come searching for you.
Do not try to become extroverted. You cannot do that. Instead, start writing and reading. You have already taken the first step of opening up to the forum. I congratulate you on that. Now all you have to do is to keep writing. Once you gain your confidence back, you will naturally become extroverted.
Good luck and keep hacking. You know we all are.