Landlord not returning my deposit money

Hello Sir, I took a house for rent under the rental agreement for 11 months on 01st Feb'17. There are lot of safety and security issues started facing from the frist day, which i informed to the owner at the time when i started facing it. Problmes like - 1. Termite - Completly spreading to full house, Worrying about my furniture. 2. Due to termite, centipedes, cockroaches and other flies are coming inside the home. You know centipedes bite is dangerous to human being. 3. Blackworms coming inside the bathroom (Daily encountering) I didn't notice these internal problems before moving into the house, But I started facing them only after staying there. I discussed all these problems with the owner, but he is not able to resolve any of these issues since it's widespread. Need help on the following - Since the house is not safe to live, I informed to the owner on 05th Apr saying that i am searching for a home becuse of security issues, if i get a house i may move out in May 1st (or) worst case May 31st. I found a house now, i told him that i am going to vacate on May 1st. For that he is saying i will deduct 2 months rent and 1 month for painting from security deposit which is not fair at all. I need a help from you sir, Since the house is having low security standards why the tenent has to pay penalty for it.